import request from '@/utils/request'


export function createSysRoleG(data) {
  return request({
    url: '/api/SysRoleG/save',
    method: 'post',
    data
  })
}

export function delSysRoleG(id) {
  return request({
    url: '/api/SysRoleG/del/'+id,
    method: 'post'
  })
}

export function batchDel(data) {
  return request({
    url: '/api/SysRoleG/batch/del',
    method: 'post',
    data
  })
}

export function batchDelByIds(data) {
  return request({
    url: '/api/SysRoleG/batch/delByIds',
    method: 'post',
    data
  })
}
export function batchDelBy(data) {
  return request({
    url: '/api/SysRoleG/batch/delByConditions',
    method: 'post',
    data
  })
}

export function editSysRoleG(data) {
  return request({
    url: '/api/SysRoleG/update',
    method: 'post',
    data
  })
}

export function editOrUpdate(data) {
  return request({
    url: '/api/SysRoleG/batch/saveOrUpdate',
    method: 'post',
    data
  })
}

export function editAfterDel(data) {
  return request({
    url: '/api/SysRoleG/batch/saveAfterDel',
    method: 'post',
    data
  })
}

export function getInfo(id) {
  return request({
    url: '/api/SysRoleG/get/'+id,
    method: 'get',
    params: { id }
  })
}


export function getPageSysRoleG(query) {
  return request({
    url: '/api/SysRoleG/getPage',
    method: 'post',
    data: query
  })
}

export function getListSysRoleG(query) {
  return request({
    url: '/api/SysRoleG/getList',
    method: 'post',
    data: query
  })
}




